<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form method="POST" action="sendMessage">
	<ul>
		<li><label for="recipient">Send to: </label></li>
		<li><input type="text" name="recipient" size="20"
			value="${param.username}${messageRecipient}"></li>
		<li><label for="object">object: </label></li>
		<li><input type="text" name="object" size="20" value="${messageObject}"></li>
		<li><textarea name="message" rows="20" cols="50">${messageText}</textarea> </li>
		<li><br /></li>
		<li><input type="submit" value="Send" name="sendButton"></li>
	</ul>
</form>

<t:errorAndMessage message="${message}" />
<c:if test="${param.sendError}">
	<p>Error! username doesn't exist</p>
</c:if>

<t:errorAndMessage message="${sendSuccess}" />